package Project2;

public class CheckingAccount extends Account {
	
	/*
	 * This function declares a new Checking Account
	 */
	public CheckingAccount(String NewName, String NewAccount, String NewPhone, String NewSSN, double NewBeginBalance)
	{
		Name = NewName;
		Account = NewAccount;
		Phone = NewPhone;
		SSN = NewSSN;
		BeginBalance = NewBeginBalance;
		Type = "Checking";
	}
	
	/*
	 * This function calculates the Int of a Checking account
	 * (non-Javadoc)
	 * @see Project2.Account#CalcInt()
	 */
	public void CalcInt()
	{
		double InterestRate = (2.5/100);
		InterestGained = (BeginBalance * InterestRate);
		NewBalance = BeginBalance + (BeginBalance * InterestRate);
	}
}
